import { IsNotEmpty, IsString,Length,Matches } from "class-validator"

export class updataUserPassword {
    @IsNotEmpty()
    userId:number;

    currentPassword:string;

    @IsString() 
    @IsNotEmpty() 
    @Length(6, 30,{
        message:'新密码长度为6到30'
    })
    newPassword:string;
}